import 'package:flutter/material.dart';

import '../../utils/local_notification_utils.dart';

class NotificationPage extends StatefulWidget {
  final String? title;

  NotificationPage(this.title);

  @override
  State<NotificationPage> createState() => _NotificationPageState();
}

class _NotificationPageState extends State<NotificationPage> {
  NotificationUtil _notificationUtil = NotificationUtil();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("xxxx"),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            _notificationUtil.showNotification(
                title: "Hello", body: "this a notification test");
          },
          child: const Text("notification"),
        ),
      ),
    );
  }

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
  }
}
